<?php
#Template for Input users informations. 
$page = (isset($page)) ? $page : 'message';
include "inc/local_data.php";
$form = (isset($using_real_env) && $using_real_env) ? $form : ((isset($data[$page])) ? $data[$page] : array());
if (empty($form)) exit;

?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <title><?php echo $form['title'];?></title>
		<?php include('inc/embed_top.php');?>
    </head>
    <?php
        if (isset($form['act']) && ($form['act']=='request' || $form['act'] == 'finish' || $form['act']=='exists')) {
            $tmp_class = 'itit';
            $b_class   = NULL;
            $end_span  = NULL;
        }
        else {
            $tmp_class = 'ltit';
            $b_class   = 'body-gray';
            $end_span  = '<span class="r">tvb.com</span>';
        }
    ?>
    <body mlang="<?php echo $form['lang'];?>" class="<?php echo $b_class;?>">
        <div id="message" class="<?php echo $form['lang'];?> message <?php echo "{$form['act']} {$form['flag']}";?>" data-role="page" data-theme="f">

            <div class="<?php echo $tmp_class;?>"><span class="logo">&nbsp;</span><?php echo $end_span;?></div>
			<div class="cont">
			<?php 
    			include('inc/inc.message.'.$form['act'].'.html'); 
			?>
			</div>
		</div>
		<?php include('inc/embed_bottom.php');?>
    </body>
</html>
